package com.sky.frame;

import java.awt.Graphics;
import java.awt.image.BufferedImage;

import javax.swing.JPanel;

public class ImagePane extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private BufferedImage image;
	
	public void setImage(BufferedImage image){
		this.image = image;
	}
	
	@Override
	public void paint(Graphics g) {
		super.paint(g);
		if(image != null)
			g.drawImage(image,0,0,null);
	}
	
	public BufferedImage getImage(){
		return image;
	}

}
